﻿using Simple.Tools;
using Simple.Tools.Verify;
using SqlSugar;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSaas.Entity.Dto
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	/// <summary>
	/// 
	/// </summary>
	[SwaggerSchema(Required = new[] { "创建租户的参数" })]
	public class SysTenantDto : IParameterVerify
	{
		/// <summary>
		/// 租户名
		/// </summary>
		[SwaggerSchema(Description = "id")]
		public string Id { get; set; }

		/// <summary>
		/// 租户名
		/// </summary>
		[CusRequired("租户名")]
		[SwaggerSchema(Description = "租户名")]
		public string TenantName { get; set; }

		/// <summary>
		/// logo
		/// </summary>
		[CusRequired("logo")]
		[SwaggerSchema(Description = "logo")]
		public string LogoUrl { get; set; }

		/// <summary>
		/// 数据库id
		/// </summary>
		[MapTo(typeof(long))]
		[CusRequired("数据库配置")]
		[SwaggerSchema(Description = "数据库配置")]
		public string DatabaseId { get; set; }
		/// <summary>
		/// 初始化租户
		/// </summary>
		[SwaggerSchema(Description = "管理员信息")]
		public SysUserDto SysUser { get; set; }
		/// <summary>
		/// app id 集合
		/// </summary>
		[SwaggerSchema(Description = "需要关联的app id 集合")]
		public List<string> AppIds { get; set; }
	}
}